<?php

class IllegalModelException extends ModelException
{

    function __construct($err, $path, $model)
    {
        if ($path) $path = $model . '.' . (join('.', $path));
        else $path = $model;
        parent::__construct("$path: $err", ModelException::ILLEGAL_MODEL);
    }

}